package com.cssy.xxkj.logic.dao;

import java.util.List;

import com.cssy.xxkj.logic.entity.LogicWarehouseHistoryDO;
import com.plat.exception.SyBaseException;
import com.plat.helper.SearchConditions;

/**
 * 数据访问对象接口
 * @since 2015-01-04
 */
public interface LogicWarehouseHistoryDAO {

    /**
     * 插入数据
     * @param logicWarehouseHistoryDO
     * @return 插入数据的主键
     */
    public String insertLogicWarehouseHistoryDO(LogicWarehouseHistoryDO logicWarehouseHistoryDO);

    /**
     * 统计记录数
     * @param logicWarehouseHistoryDO
     * @return 查出的记录数
     */
    public Integer countLogicWarehouseHistoryDOByExample(LogicWarehouseHistoryDO logicWarehouseHistoryDO);

    /**
     * 更新记录
     * @param logicWarehouseHistoryDO
     * @return 受影响的行数
     */
    public Integer updateLogicWarehouseHistoryDO(LogicWarehouseHistoryDO logicWarehouseHistoryDO);

    /**
     * 获取对象列表
     * @param logicWarehouseHistoryDO
     * @return 对象列表
     */
    public List<LogicWarehouseHistoryDO> findListByExample(LogicWarehouseHistoryDO logicWarehouseHistoryDO);

    /**
     * 根据主键获取logicWarehouseHistoryDO
     * @param id
     * @return logicWarehouseHistoryDO
     */
    public LogicWarehouseHistoryDO findLogicWarehouseHistoryDOByPrimaryKey(String id);

    /**
     * 删除记录
     * @param id
     * @return 受影响的行数
     */
    public Integer deleteLogicWarehouseHistoryDOByPrimaryKey(String id);
    /**
     * 查询所有记录（根据条件）
     * @param scs
     * @return
     * @throws SyBaseException
     */
    public List<LogicWarehouseHistoryDO> findListByCondition(SearchConditions scs)throws SyBaseException;

}